HAL SPDIFRX constants migration ¶
This section provides information about the HAL SPDIFRX constants migration.
HAL SPDIFRX error codes constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_SPDIFRX_ERROR_DMA
#define HAL_SPDIFRX_ERROR_NONE
#define HAL_SPDIFRX_ERROR_OVR
#define HAL_SPDIFRX_ERROR_PE
#define HAL_SPDIFRX_ERROR_TIMEOUT
#define HAL_SPDIFRX_ERROR_UNKNOWN
#define HAL_SPDIFRX_ERROR_INVALID_CALLBACK
|
#define HAL_SPDIFRX_ERROR_DMA
#define HAL_SPDIFRX_ERROR_NONE
#define HAL_SPDIFRX_ERROR_OVR
#define HAL_SPDIFRX_ERROR_PERR
#define HAL_SPDIFRX_ERROR_SYNC
Removed; this kind of logical error is reported by the direct function return. |
Related concept:
HAL SPDIFRX flags constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_FLAG_RXNE
#define SPDIFRX_FLAG_CSRNE
#define SPDIFRX_FLAG_PERR
#define SPDIFRX_FLAG_OVR
#define SPDIFRX_FLAG_SBD
#define SPDIFRX_FLAG_SYNCD
#define SPDIFRX_FLAG_FERR
#define SPDIFRX_FLAG_SERR
#define SPDIFRX_FLAG_TERR
|
#define HAL_SPDIFRX_FLAG_RXNE
#define HAL_SPDIFRX_FLAG_CSRNE
#define HAL_SPDIFRX_FLAG_PERR
#define HAL_SPDIFRX_FLAG_OVR
#define HAL_SPDIFRX_FLAG_SBD
#define HAL_SPDIFRX_FLAG_SYNCD
#define HAL_SPDIFRX_FLAG_FERR
#define HAL_SPDIFRX_FLAG_SERR
#define HAL_SPDIFRX_FLAG_TERR
#define HAL_SPDIFRX_FLAG_ALL
|
Related concept:
HAL SPDIFRX interrupt types constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_IT_RXNE
#define SPDIFRX_IT_CSRNE
#define SPDIFRX_IT_PERRIE
#define SPDIFRX_IT_OVRIE
#define SPDIFRX_IT_SBLKIE
#define SPDIFRX_IT_SYNCDIE
#define SPDIFRX_IT_IFEIE
|
#define HAL_SPDIFRX_IT_RXNE
#define HAL_SPDIFRX_IT_CSRNE
#define HAL_SPDIFRX_IT_PERRIE
#define HAL_SPDIFRX_IT_OVRIE
#define HAL_SPDIFRX_IT_SBLKIE
#define HAL_SPDIFRX_IT_SYNCDIE
#define HAL_SPDIFRX_IT_IFEIE
#define HAL_SPDIFRX_IT_ALL
|
Related concept:
HAL SPDIFRX channel status constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_CHANNELSTATUS_OFF
#define SPDIFRX_CHANNELSTATUS_ON
|
typedef enum
{
HAL_SPDIFRX_CHANNEL_USER_MASK_DISABLE,
HAL_SPDIFRX_CHANNEL_USER_MASK_ENABLE
} hal_spdifrx_channel_user_mask_state_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX channel identifiers constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_CHANNEL_A
#define SPDIFRX_CHANNEL_B
|
typedef enum
{
HAL_SPDIFRX_CONTROL_CHANNEL_A,
HAL_SPDIFRX_CONTROL_CHANNEL_B
} hal_spdifrx_control_channel_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX input sources constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_INPUT_IN0
#define SPDIFRX_INPUT_IN1
#define SPDIFRX_INPUT_IN2
#define SPDIFRX_INPUT_IN3
|
typedef enum
{
HAL_SPDIFRX_INPUT_0,
HAL_SPDIFRX_INPUT_1,
HAL_SPDIFRX_INPUT_2,
HAL_SPDIFRX_INPUT_3
} hal_spdifrx_input_selection_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX data formats constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_DATAFORMAT_32BITS
#define SPDIFRX_DATAFORMAT_LSB
#define SPDIFRX_DATAFORMAT_MSB
|
typedef enum
{
HAL_SPDIFRX_DATA_FORMAT_32BITS,
HAL_SPDIFRX_DATA_FORMAT_LSB,
HAL_SPDIFRX_DATA_FORMAT_MSB
} hal_spdifrx_data_format_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX max retries constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_MAXRETRIES_NONE
#define SPDIFRX_MAXRETRIES_3
#define SPDIFRX_MAXRETRIES_15
#define SPDIFRX_MAXRETRIES_63
|
typedef enum
{
HAL_SPDIFRX_SYNCHRO_RETRIES_NONE,
HAL_SPDIFRX_SYNCHRO_RETRIES_3,
HAL_SPDIFRX_SYNCHRO_RETRIES_15,
HAL_SPDIFRX_SYNCHRO_RETRIES_63
} hal_spdifrx_synchro_retries_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX parity error mask constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_PARITYERRORMASK_OFF
#define SPDIFRX_PARITYERRORMASK_ON
|
typedef enum
{
HAL_SPDIFRX_PARITY_ERROR_MASK_DISABLE,
HAL_SPDIFRX_PARITY_ERROR_MASK_ENABLE
} hal_spdifrx_parity_error_mask_state_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX preamble type mask constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_PREAMBLETYPEMASK_OFF
#define SPDIFRX_PREAMBLETYPEMASK_ON
|
typedef enum
{
HAL_SPDIFRX_PREAMBLE_MASK_DISABLE,
HAL_SPDIFRX_PREAMBLE_MASK_ENABLE
} hal_spdifrx_preamble_mask_state_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX stereo mode constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_STEREOMODE_DISABLE
#define SPDIFRX_STEREOMODE_ENABLE
|
typedef enum
{
HAL_SPDIFRX_ALIGNMENT_STEREO_DISABLED,
HAL_SPDIFRX_ALIGNMENT_STEREO_ENABLED
} hal_spdifrx_alignment_stereo_overrun_status_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX validity mask constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_VALIDITYMASK_OFF
#define SPDIFRX_VALIDITYMASK_ON
|
typedef enum
{
HAL_SPDIFRX_VALIDITY_MASK_DISABLE,
HAL_SPDIFRX_VALIDITY_MASK_ENABLE
} hal_spdifrx_validity_mask_state_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX wait for activity constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_WAITFORACTIVITY_OFF
#define SPDIFRX_WAITFORACTIVITY_ON
|
typedef enum
{
HAL_SPDIFRX_WAIT_FOR_ACTIVITY_DISABLED,
HAL_SPDIFRX_WAIT_FOR_ACTIVITY_ENABLED
} hal_spdifrx_wait_for_activity_status_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL SPDIFRX states constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define SPDIFRX_STATE_IDLE
#define SPDIFRX_STATE_RCV
#define SPDIFRX_STATE_SYNC
|
Removed; these constants were used internally in HAL1 and do not impact user-level operations. |